from django.contrib import admin
from django.views.static import serve
from django.conf import settings
from django.urls import path,re_path

from yxb import index, mysql, ajax

urlpatterns = [
    path('', index.index),
    # path('admin/', admin.site.urls),
    path('mysql/', mysql.mysql_connect_test),

    path('ajax/get_words/', ajax.ajax_post_test),

    path('test/user/', ajax.ajax_get_test),

    re_path(r'^static/(?P<path>.*)$',serve,{
        'document_root':settings.STATIC_ROOT
    })

]
